import request from './request'

export function recycleBinPage(data) {
  return request({
    url: '/recycle/page',
    method: 'post',
    data
  })
}
export function recycleBinDelete(id) {
  return request({
    url: '/recycle/delete/'+id,
    method: 'delete',
    params: {
      id:id
    }
  })
}
export function recycleRecover(id) {
  return request({
    url: '/recycle/recover/',
    method: 'put',
    params: {
      id:id
    }
  })
}
export function searchByName(data) {
  return request({
    url: '/recycle/searchByName',
    method: 'post',
    data
  })
}
export function recoverAll(ids)  {
  return request({
    url: '/recycle/recoverAll',
    method: 'put',
    params: {
      ids:ids
    }
  })
}
export function deleteAll(ids)  {
  return request({
    url: '/recycle/deleteAll',
    method: 'delete',
    params: {
      ids:ids
    }
  })
}